package com.lxy.file.entity;

import lombok.Data;
import lombok.ToString;

/** 分块基类
 * @author LiuXiaoYu
 * @date 2021/9/4- 14:27
 */
public class BaseEntity {
    /**md5值*/
    private String md5Value;
    /**文件名称*/
    private String filename;
    /**是否开启全部分块传送完之后自动合并*/
    private Boolean autoMerge;
    /**
     * 分块总数
     */
    private Integer totalChunks;

    public String getMd5Value() {
        return md5Value;
    }

    public void setMd5Value(String md5Value) {
        this.md5Value = md5Value;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public Boolean getAutoMerge() {
        return autoMerge;
    }

    public void setAutoMerge(Boolean autoMerge) {
        this.autoMerge = autoMerge;
    }

    public Integer getTotalChunks() {
        return totalChunks;
    }

    public void setTotalChunks(Integer totalChunks) {
        this.totalChunks = totalChunks;
    }

    @Override
    public String toString() {
        return "BaseEntity{" +
                "md5Value='" + md5Value + '\'' +
                ", filename='" + filename + '\'' +
                ", autoMerge=" + autoMerge +
                ", totalChunks=" + totalChunks +
                '}';
    }
}
